fix close button in testtitlebar as well
authorMatthias Clasen <mclasen@redhat.com>
Sun, 7 Jul 2013 01:53:15 +0000 (21:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Jul 2013 03:11:19 +0000 (23:11 -0400)
Same disease as with the previous fix.

tests/testtitlebar.c

index b828a516e903d54fb394ae2e38824e6129c1b644..e20c3940ddbde906dcec61e9e8917ebe08f3c650 100644 (file)
@@ -40,7 +40,7 @@ main (int argc, char *argv[])
   g_object_unref (icon);
   gtk_container_add (GTK_CONTAINER (button), image);
   gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
-  g_signal_connect (button, "clicked", G_CALLBACK (gtk_window_close), NULL);
+  g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_close), window);
 
   gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);